package com.ibeeking.found.org.cp.rest.service;

import com.ibeeking.found.org.service.common.param.DepartmentParam;
import com.ibeeking.found.org.service.common.query.DepartmentQuery;
import com.ibeeking.found.org.service.common.vo.DepartmentTreeVO;
import com.ibeeking.found.org.service.common.vo.DepartmentVO;

import java.util.List;


/**
 * IDepartmentService
 *
 * @Author ibeeking
 * @Date 2021-01-29 14:48
 */
public interface IDepartmentService {

    /***
     * 职位列表
     */
    List<DepartmentVO> list(DepartmentQuery query);
    /***
     * 部门树列表
     */
    List<DepartmentTreeVO> listTree(DepartmentQuery query);
    /***
     * 新增
     */
    Boolean add(DepartmentParam param);

    /***
     * 修改
     */
    Boolean modify(DepartmentParam param);

    /***
     * 通过id查询
     */
    DepartmentVO view(Long id);

    /***
     * 修改状态
     */
    Boolean changeStatus(Long id, Integer status);

    /***
     * 通过id删除
     */
    Boolean del(Long id);

}